home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Garbo
/
Garbo.cdr
/
mac
/
hypercrd
/
hc2_x
/
tcprogud.sit
/
picture ƒ
/
project.h
< prev
next >
Wrap
Text File
|
1991-02-16
|
1KB
|
50 lines
/*
* FILE: project.h
* AUTHOR: R. Gonzalez
* CREATED: October 2, 1990
*
* Defines projector (for 2D transformation and display) for picture
* application.
*/
# ifndef project_h
# define project_h
# include "class.h"
# include "coord.h"
# include "screen.h"
# include "frame.h"
# include "color.h"
/******************************************************************
* projector
******************************************************************/
struct Projector:Generic_Class
{
Screen *screen_ptr;
color background_color;
Frame *cropping_frame;
Frame *projection_frame;
Frame *window_frame;
int window_num;
boolean init(void);
virtual void set_background_color(color);
virtual void set_cropping_frame(double,double,double,double);
virtual void set_projection_frame(double,double,double,double);
virtual void set_screen(Screen*);
virtual void clear(void);
virtual void overlap(void);
virtual void show_line(Coord2*,Coord2*,color);
boolean destroy(void);
};
/******************************************************************
* corner projector - sample of specialized projector
******************************************************************/
struct Corner_Projector:Projector
{
boolean init(void);
};
# endif